﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using RainyPWS.Business;
using RainyPWS.Common;


namespace RainyPWS.Web.Admin.controls
{
    public partial class TypeControl : System.Web.UI.UserControl
    {
        public string TypeID = "0";
        protected void Page_Load(object sender, EventArgs e)
        {
            TypeID = MRequest.GetQueryInt("tid", 0).ToString();
            if (!IsPostBack)
            {
                TypeDataBind();
            }
        }

        private void TypeDataBind()
        {
            DataTable dt = BRecordType.Instance.GetDataType();
            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
    }
}